package vn.fsoft.gst.domain;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 
 * @author Tung
 *
 */

@Entity
@Table(name = "sic")
public class Sic {

	@Id  
    @Column(name = "SICCode", columnDefinition="char(5)")  
    private String sicCode;

	@Column(name = "TypeOfBussiness")
    private String typeOfBussiness;

	@OneToMany(mappedBy = "sic")
	private List<Organisation> listOrganisation;

	public String getSicCode() {
		return sicCode;
	}

	public void setSicCode(String sicCode) {
		this.sicCode = sicCode;
	}

	public String getTypeOfBussiness() {
		return typeOfBussiness;
	}

	public void setTypeOfBussiness(String typeOfBussiness) {
		this.typeOfBussiness = typeOfBussiness;
	}

	public List<Organisation> getListOrganisation() {
		return listOrganisation;
	}

	public void setListOrganisation(List<Organisation> listOrganisation) {
		this.listOrganisation = listOrganisation;
	}
	
	
}
